{extend name="public/base"/}
{block name="body"}
<!-- datepicker end -->
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>
                                生成到导航
			</h2>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<form method="post" class="form form-horizontal">
			<div class="form-group">
				<label class="col-lg-2 control-label">导航标题</label>
				<div class="col-lg-6">
					<input type="text" class="form-control" name="title" value="{$info.title|default=''}">
					<span class="help-block">（用于显示的文字）</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">当前标识</label>
				<div class="col-lg-6">
					<input type="text" class="form-control" name="active" value="{$info.active|default=''}">
					<span class="help-block">（当前标识）</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">导航连接</label>
				<div class="col-lg-8">
					<input type="text" class="form-control" name="url" value="{$info.url|default=''}">
					<span class="help-block">（用于调转的URL，支持带http://的URL或U函数参数格式）</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">导航类型</label>
				<div class="col-lg-8">
					<select name="type" id="type" class="form-control" style="width:auto;">
						{volist name=":config('nav_type_list')" id="item"}
						<option value="{$key}" {if isset($info['type']) && $info['type'] == $key}selected{/if}>{$item}</option>
						{/volist}
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">父导航</label>
				<div class="col-lg-5">
					<select name="pid" class="form-control" style="width:auto;">
						<option value="0">--一级导航--</option>
						{volist name=":parse_field_bind('Channel',$data['pid'],'')" id="item"}
						{if condition="$item['id'] neq $data['id']"}
						<option value="{$item['id']}" {if condition="$pid eq $item['id']"}selected{/if}>{$item['title_show']}</option>
						{/if}
						{/volist}
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">新窗口打开</label>
				<div class="col-lg-2">
					<select name="target" class="form-control" style="width:auto;">
						<option value="0" >否</option>
						<option value="1" {eq name="data.target" value="1"}selected{/eq}>是</option>
                                        </select>
                                        <span class="help-block">（是否新窗口打开链接）</span>
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-lg-2 control-label">图标</label>
                                <div class="col-lg-2">
                                        <input type="text" class="form-control" name="icon" value="{$info.icon|default=''}">
                                        <span class="help-block">输入图标英文</span>
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-lg-2 control-label">优先级</label>
                                <div class="col-lg-2">
                                        <input type="text" class="form-control" name="sort" value="{$info.sort|default='1'}">
                                        <span class="help-block">（导航显示顺序）</span>
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-lg-2 control-label">文字颜色</label>
                                <div class="col-lg-2">
                                        <input type="text" class="form-control" name="color" value="{$info['color']|default=''}">
                                        <span class="help-block">（右上角的标志点颜色，支持各类css表示方式）</span>
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-lg-2 control-label">标志点颜色</label>
                                <div class="col-lg-2">
                                        <input type="text" class="form-control" name="band_color" value="{$info['band_color']|default=''}">
                                        <span class="help-block">（右上角的标志点颜色，支持各类css表示方式）</span>
                                </div>
                        </div>
                        <div class="form-group">
                                <label class="col-lg-2 control-label">标志点文字</label>
                                <div class="col-lg-3">
                                        <input type="text" class="form-control" name="band_text" value="{$info['band_text']|default=''}">
                                        <span class="help-block">（右上角的标志点文字，不要太长，没有自动隐藏）</span>
                                </div>
                        </div>

                        <div class="form-group">
                                <div class="col-lg-offset-2 col-lg-10">
                                        <input type="hidden" name="id" value="{$data.id|default=''}">
                                        <button class="btn btn-success submit-btn ajax-post" type="submit" target-form="form-horizontal">确 定</button>
                                        <button class="btn btn-danger btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                                </div>
                        </div>
                </form>
        </div>
</div>
{/block}